using System.Web.Mvc;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace GdNet.WebFramework.Gui.Installers
{
    /// <summary>
    /// TODO: consider to move this installer into namespace GdNet.Integrations.Castle.Installers
    /// </summary>
    public class ControllersInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Classes.FromThisAssembly().BasedOn<IController>().LifestylePerWebRequest());
        }
    }
}